package com.tj.api.rest.account.response;

/**
 * Created with IntelliJ IDEA.
 * User: anonymous
 * Date: 2020/06/11
 * Time: 下午2:16
 */
public class BalanceResponse {

    private String balance;
    /**
     * 赠金
     */
    private String grants;
    /**
     * 是否展示最新一笔提现中(或提现失败)页面
     */
    private boolean withdrawProcessing;
    /**
     * 开放充值
     */
    private boolean openRecharge;
    /**
     * 开放提现
     */
    private boolean openWithdrawal;

    public boolean isOpenWithdrawal() {
        return openWithdrawal;
    }

    public BalanceResponse setOpenWithdrawal(boolean openWithdrawal) {
        this.openWithdrawal = openWithdrawal;
        return this;
    }

    public boolean isOpenRecharge() {
        return openRecharge;
    }

    public BalanceResponse setOpenRecharge(boolean openRecharge) {
        this.openRecharge = openRecharge;
        return this;
    }

    public BalanceResponse(String balance, String grants, boolean withdrawProcessing, boolean openRecharge, boolean openWithdrawal) {
        this.balance = balance;
        this.grants = grants;
        this.withdrawProcessing = withdrawProcessing;
        this.openRecharge = openRecharge;
        this.openWithdrawal = openWithdrawal;
    }

    public String getBalance() {
        return balance;
    }

    public void setBalance(String balance) {
        this.balance = balance;
    }

    public String getGrants() {
        return grants;
    }

    public void setGrants(String grants) {
        this.grants = grants;
    }

    public boolean isWithdrawProcessing() {
        return withdrawProcessing;
    }

    public void setWithdrawProcessing(boolean withdrawProcessing) {
        this.withdrawProcessing = withdrawProcessing;
    }
}